from django.conf.urls import patterns, include, url
from ultimateImdbApp.views import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', mainpage, name='home'),
    url(r'^users/(\w+)/$', userpage),
    url(r'^users/$', users),
    url(r'^login/$','django.contrib.auth.views.login'),
    url(r'^logout/$','django.contrib.auth.views.logout'),
    url(r'^registration/$', register),
    url(r'^actors/$', actorspage),
    url(r'^directors/$', directorspage),
    url(r'^films/$', filmspage),
    url(r'^actors/(\w+)/$', actorpage),
    url(r'^directors/(\w+)/$', directorpage),
    url(r'^films/(\w+)/$', filmpage),
    url(r'^qualifications/(\w+)/$', qualifications),
    url(r'^qualifications/(\w+)/(\w+)/$', qualification),

    # url(r'^$', 'ultimateImdb.views.home', name='home'),
    # url(r'^ultimateImdb/', include('ultimateImdb.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
